#coding=utf-8

# 导入math模块
import math

# 输入两个整数a和b
a = int(input())
b = int(input())

# 请在此添加代码，要求判断是否存在两个整数，它们的和为a，积为b
#********** Begin *********#
t = 0
for i in range(a):
    j = a-i
    if i * j ==b:
        print("Yes")
        t = 1
        break
if t == 0:
    print("No")


#********** End **********#

